
#include"SeqList.h"

void TestSeqList()
{
	SeqNode head;
	Seqinit(&head);

	SeqPushBack(&head, 1);
	SeqPushBack(&head, 2);
	SeqPushBack(&head, 3);
	SeqPushBack(&head, 4);
	SeqPushBack(&head, 5);
	
	SeqPushFront(&head, 10);
	SeqPushFront(&head, 20);
	SeqPushFront(&head, 30);
	SeqPushFront(&head, 40);

	int pos = SeqFind(&head, 40);
	if (pos >= 0)
	{
		SeqInsert(&head, pos, 400);
		Seqmodify(&head, pos, 500);
		SeqErase(&head, pos);
	}

	Seqprint(&head);

	SeqDestroy(&head);
}
int main()
{
	TestSeqList();
	system("pause");
	return 0;
}